home *** CD-ROM | disk | FTP | other *** search
- Clrscr ; Clear the screen
-
- ;
- ; Uncomment out the followin lines if you want to switch
- ; to a different Drive and/or Subdirectory for the HOST.
- ;
- ; Note Switching to HOST directory
- ; Chdir C:\QMODEM\HOST ; change to a subdirectory for
- ; ; upload/download usage.
-
-
- IF '$0' = 'LOCAL' Get_Menu ; if local, skip modem setup
-
- Top:
- Gosub Setup_Modem ; go set up the modem
-
- Top2:
- Timeout 32000 top2
- Clrscr
- Note Qmodem HOST 1.0 [ Waiting for Call ]
- Note _______________________________________________________________
-
- Waitfor "RING"
-
- Gosub Answer_The_Call
- Goto Top2
-
- Connected:
- When ; Clear pending WHENs
- getx 0 " " ; Trap Baud in $0
- SetComm $0 ; Set COM port to match Modem
- Beep 262
- Beep 330
- Beep 392
- Beep 523
- Beep 0
- Beep 392
- Beep 523
- Turnon Online
- Clrscr
- Note Qmodem HOST 1.1 [ Connected! ]
- Note ________________________________________________________________
-
- writeln " "
- writeln " "
- Writeln "This is Qmodem in Script HOST Mode."
- Writeln "Please enter your First and Last name on the next line."
- Writeln "[-----------------------------------]"
- Write " "
- Getr 0 35
- Writeln " "
- Writeln "LOGing $0 into the Host..."
- Stamp ********************************************
- Stamp $0 logged onto the Host
-
-
- Get_Menu:
- Writeln " "
- Writeln "Main Menu :"
- Writeln " [C]hat with the HOST"
- Writeln " [L]ist Files to be Downloaded"
- Writeln " [U]pload a file to the HOST"
- Writeln " [D]ownload a File from the HOST"
- Writeln " [G]oodbye and Hangup"
- Writeln " "
- Write "Menu: [C,L,U,D,G] ? "
- Getr 8 1
- if '$8' = 'C' Chat_
- if '$8' = 'U' Upload_
- if '$8' = 'D' Download_
- if '$8' = 'L' List_
- if '$8' = 'G' Quit_
-
- if '$8' = '_OFFLINE_' Quit_
- goto Get_Menu
-
-
- Chat_:
- Script Chat.Hst
- Goto Get_Menu
-
- Upload_:
- Script u.hst
- Goto Get_Menu
-
- Download_:
- Script D.HST
- Goto Get_Menu
-
- List_:
- Script DIR.HST
- Goto Get_Menu
-
-
- Quit_:
- Writeln " "
- Writeln "Thanks for calling!"
- Gosub Cycle
- Return
-
-
- Setup_Modem:
- Clrscr
- Note Qmodem HOST 1.1 [ Modem Setup ]
- Note ________________________________________________________________
- Timeout 5 M1
- M1:
- Send "ATE1Q0M1X1V1{"
- Waitfor "OK"
- Return
-
- Any_Key:
- Note
- Write "Press ENTER to continue: "
- Getr 9 0
- Return
-
- Answer_the_Call:
- Send "ATA{"
- When
- When "Connect " Connected
- Timeout 45 Error
- Waitfor "No"
- Gosub Cycle
- Return
-
- Cycle:
- Hangup
- Gosub Setup_Modem
- Return